/*  1:   */ package org.jetbrains.jps.model.module.impl;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsEventDispatcher;
import org.jetbrains.jps.model.ex.JpsElementChildRoleBase;
import org.jetbrains.jps.model.ex.JpsElementCollectionRole;
import org.jetbrains.jps.model.module.JpsModuleSourceRoot;
import org.jetbrains.jps.model.module.JpsModuleSourceRootListener;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */ 
/* 10:   */ public class JpsModuleSourceRootRole
/* 11:   */   extends JpsElementChildRoleBase<JpsModuleSourceRoot>
/* 12:   */ {
/* 13:29 */   private static final JpsModuleSourceRootRole a = new JpsModuleSourceRootRole();
/* 14:30 */   public static final JpsElementCollectionRole<JpsModuleSourceRoot> ROOT_COLLECTION_ROLE = JpsElementCollectionRole.create(a);
/* 15:   */   
/* 16:   */   private JpsModuleSourceRootRole()
/* 17:   */   {
/* 18:33 */     super("module source root");
/* 19:   */   }
/* 20:   */   
/* 21:   */   public void fireElementAdded(@NotNull JpsEventDispatcher paramJpsEventDispatcher, @NotNull JpsModuleSourceRoot paramJpsModuleSourceRoot)
/* 22:   */   {
/* 23:38 */     if (paramJpsEventDispatcher == null) {
/* 24:38 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/module/impl/JpsModuleSourceRootRole", "fireElementAdded" }));
/* 25:   */     }
/* 26:38 */     if (paramJpsModuleSourceRoot == null) {
/* 27:38 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/jps/model/module/impl/JpsModuleSourceRootRole", "fireElementAdded" }));
/* 28:   */     }
/* 29:38 */     ((JpsModuleSourceRootListener)paramJpsEventDispatcher.getPublisher(JpsModuleSourceRootListener.class)).sourceRootAdded(paramJpsModuleSourceRoot);
/* 30:   */   }
/* 31:   */   
/* 32:   */   public void fireElementRemoved(@NotNull JpsEventDispatcher paramJpsEventDispatcher, @NotNull JpsModuleSourceRoot paramJpsModuleSourceRoot)
/* 33:   */   {
/* 34:43 */     if (paramJpsEventDispatcher == null) {
/* 35:43 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/module/impl/JpsModuleSourceRootRole", "fireElementRemoved" }));
/* 36:   */     }
/* 37:43 */     if (paramJpsModuleSourceRoot == null) {
/* 38:43 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/jps/model/module/impl/JpsModuleSourceRootRole", "fireElementRemoved" }));
/* 39:   */     }
/* 40:43 */     ((JpsModuleSourceRootListener)paramJpsEventDispatcher.getPublisher(JpsModuleSourceRootListener.class)).sourceRootRemoved(paramJpsModuleSourceRoot);
/* 41:   */   }
/* 42:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.module.impl.JpsModuleSourceRootRole

 * JD-Core Version:    0.7.0.1

 */